<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>字典修改</title>
<link rel="stylesheet" href="<%=basePath%>ui/css/edit.css" />
	<script type="text/javascript">
		function checkForm(){
			if(document.getElementById("dictCode").value == ""){
				alert("请输入编码名称！");
				document.getElementById("dictCode").focus();
				return false;
			}
			if(document.getElementById("dictValue").value == ""){
				alert("请输入值！");
				document.getElementById("dictValue").focus();
				return false;
			}
			return true;
		}
		function checkLen(id,maxLen){
			var val = document.getElementById(id).value;
			val = val.replace(/[^\x00-\xff]/g,"**");
			if(val.length > maxLen){
				document.getElementById(id).focus();
				alert("您输入了"+val.length+"个字符，超出了最大值"+maxLen+"个");
			}
		}
	</script>
  </head>
  
  <body>
  		<form action="${basePath}dict/save/${porCode}.html" onSubmit="return checkForm();" method="post">
	  		<input type="hidden" value="${entity.id}" name="id" name="id" />
	  		<table cellspacing="0" cellpadding="0" border="0"  class="addclass">
	  		  <tr>
	  		    <td colspan="2><div class="nav"><%@ include file="/common/nav.jsp"%></div></tr>
	  		  </tr>
	  		  <tr>
	  		     <td width="20%" class="trLeft">编码：</td>
	  		     <td><input id="dict_code" name="dict_code" type="text" value="${entity.dict_code }"/></td>
	  		  </tr>
	  		  <tr>
	  		     <td width="20%" class="trLeft">值：</td>
	  		     <td><input id="dict_value" name="dict_value" type="text" value="${entity.dict_value }"/></td>
	  		  </tr>
	  		    <tr>
	  		     <td  width="20%" class="trLeft" valign="top">备注：</td>
	  		      <td><textarea class="textarea" name="memo" id="note" onblur="checkLen(this.id,200)">${entity.memo }</textarea></td>
	  		  </tr>
	  		  <tr>
	  		   <td colspan="2" align="center"><input type="submit" value=" 提  交 " class="button"/></td>
	  		  </tr>
	  		</table>
	  		
  		</form>
  </body>
</html>
